* babl/babl.h: Move up forward declaration of BablList.
* babl/babl-list.h: Completely rely on that declaration.
svn path=/trunk/; revision=372
+2009-01-17 Martin Nordholts <martinn@svn.gnome.org>
+
+ * babl/babl.h: Move up forward declaration of BablList.
+
+ * babl/babl-list.h: Completely rely on that declaration.
+
2009-01-17 Martin Nordholts <martinn@svn.gnome.org>
* babl/babl.h: Don't have BABL_ALPHA_THRESHOLD public yet.
#define _BABL_LIST_H
#ifndef _BABL_H
-/* babl.h contains forward declaration
- * typedef struct _BablList BablList;
- */
#error babl-list.h is only to be included after babl.h
#endif
-
-typedef struct _BablList
+struct _BablList
{
int count;
int size;
Babl **items;
-} _BablList;
-
+};
BablList *
babl_list_init (void);
#include "babl-macros.h"
#include "babl-main.h"
+typedef struct _BablList BablList;
+
/* magic number used at the start of all babl objects, used to do
* differentiation in polymorphic functions. (as well as manual
* type check assertions).
typedef union _Babl Babl;
-typedef struct _BablList BablList;
-
typedef int (*BablEachFunction) (Babl *entry,
void *data);